<?php

namespace App\Trip\Train\Seat\Interfaces;

use App\Trip\Train\Seat\SeatInfo;

interface SeatsInterface
{
    public function getTrainCode(): string;

    public function getName(): string;

    public function getPrice(): float;

    public function getInventory(): int;

    public function addDetail(SeatInfo $detail);

    public function seatDetails();

    /**
     * 保存行程座位的库存
     * @return mixed
     */
    public function saveTripInventory(): bool;
}